SWEP.Base = "weapon_ic_baseweapon"

if SERVER then
	AddCSLuaFile ("shared.lua")
end

SWEP.Spawnable				= true
SWEP.AdminSpawnable			= true

SWEP.Spawnable				= true
SWEP.AdminSpawnable			= true

SWEP.PrintName			= "M4 CARBINE"
SWEP.Description		= "A high-power, low-recoil accurate automatic rifle ideal at any range against even the toughest of opponents, but limited by its magazine size and lack of scope."

SWEP.Slot					= 2
SWEP.Cost					= 4750
SWEP.IconFont				= "CSKillIcons"
SWEP.IconLetter				= "w"

SWEP.Primary.ClipSize		= 30
SWEP.Primary.DefaultClip	= 240
SWEP.Primary.Automatic		= true
SWEP.Primary.Ammo			= "smg1"

SWEP.Primary.Sound			= Sound ("Weapon_M4A1.Single")

SWEP.Primary.Delay			= 0.1
SWEP.Primary.Damage			= 32
SWEP.Primary.Cone			= 0.012
SWEP.Primary.Kick			= 1.0

SWEP.Secondary.ClipSize		= -1
SWEP.Secondary.DefaultClip	= -1
SWEP.Secondary.Automatic	= false 
SWEP.Secondary.Ammo			= "none"

SWEP.ViewModel = "models/weapons/v_rif_m4a1.mdl"
SWEP.ViewModelFlip = true
SWEP.ViewModelDefPos = Vector (4.7087, 0, -0.5559)
SWEP.ViewModelDefAng = Vector (3.0857, 2.8004, 4.1687)

SWEP.WorldModel = "models/weapons/w_rif_m4a1.mdl"
SWEP.HoldType = "ar2"

if CLIENT then killicon.AddFont("weapon_ic_m4a1", SWEP.IconFont, SWEP.IconLetter, Color(255, 80, 0, 255)) end

SWEP.IsRifle	= true
